﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using ServerFramework.Net.Http;
using MsgDefine;

namespace HttpServer
{
    class MyRoute : ServerFramework.Net.Http.IHttpRoute
    {
        bool IHttpRoute.Process(HttpListenerRequest request, HttpListenerResponse response)
        {
            ResHelloworld msg = new ResHelloworld();
            msg.ResString = "i am server";
            response.Close(msg.Pack(), false);
            return true;
        }
    }
}
